from RandomList import GetRandomList

def selection_sort(arr):
    for i in range(len(arr)): 
        min_idx = i 
        for j in range(i+1, len(arr)): 
            if arr[min_idx] > arr[j]: 
                min_idx = j 
        arr[i], arr[min_idx] = arr[min_idx], arr[i] 
    return arr

if __name__ == '__main__':
    Arr = GetRandomList(100)
    print(selection_sort(Arr))
    